home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / shell / command / src / command.c next >
Encoding:
C/C++ Source or Header  |  1995-05-28  |  1.4 KB  |  69 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    dialogID ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    messageID[2] ;
  11.  
  12. #define ALIGN    4
  13. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  14.  
  15. /*    MMI_init 用データ    */
  16.  
  17. /*    ヘッダ    */
  18.  
  19. MMIINIT    initDataCOMMAND = { "MmiInit",   3, 0 } ;
  20.  
  21. /* dialogID */
  22.  
  23. static MMIPACKET d001 = {    &dialogID,
  24.                             &MJ_BASEOBJ,
  25.                             &MJ_DIALOGL40,
  26.                             OFFSET(DIALOGL40),
  27.                             MS_NONE
  28.                         } ;
  29. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  30.                              253, 228, 388, 253, 8, 9,15,
  31.                             MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
  32.                             NULL,   0,   0
  33.                         } ;
  34.  
  35. /* messageID[0] */
  36.  
  37. static MMIPACKET d002 = {    &messageID[0],
  38.                             &dialogID,
  39.                             &MJ_MSGL40,
  40.                             OFFSET(MSGL40),
  41.                             MS_NONE
  42.                         } ;
  43. static MSGL40    d002d =     {    MS_DSPONLYL40,
  44.                              257, 232, 262, 237, 8, 5, 8,
  45.                             MS_NONEL40,
  46.                             "コマンド実行中",
  47.                                0,  16,  16,
  48.                             MS_BOLDL40 | MS_OUTLINEL40,
  49.                               -1,   0
  50.                         } ;
  51.  
  52. /* messageID[1] */
  53.  
  54. static MMIPACKET d003 = {    &messageID[1],
  55.                             &dialogID,
  56.                             &MJ_MSGL40,
  57.                             0,
  58.                             MS_NONE
  59.                         } ;
  60. static MSGL40    d003d =     {    MS_DSPONLYL40,
  61.                              258, 233, 263, 238, 8,15,14,
  62.                             MS_NONEL40,
  63.                             "コマンド実行中",
  64.                                0,  16,  16,
  65.                             MS_BOLDL40,
  66.                                1,   0
  67.                         } ;
  68.  
  69.